import 'package:json_annotation/json_annotation.dart';

part 'area_code_model.g.dart';


@JsonSerializable()
class AreaCodeModel extends Object {

  List<ListItem>? list;

  AreaCodeModel(this.list,);

  factory AreaCodeModel.fromJson(Map<String, dynamic> srcJson) => _$AreaCodeModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$AreaCodeModelToJson(this);

}


@JsonSerializable()
class ListItem extends Object {

  int id;

  String code;

  String name;

  int is_available;

  int is_default;

  String? icon;

  String label;

  ListItem(this.id,this.code,this.name,this.is_available,this.is_default,this.icon,this.label);

  factory ListItem.fromJson(Map<String, dynamic> srcJson) => _$ListItemFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ListItemToJson(this);

}


